// 修改主题
$(function () {
    var name = $.cookie('easyuiThemeName');
    if (name==null) {
        name="bootstrap"
    }
    $.cookie('easyuiThemeName', name, {
        expires : 7
    });
    var href = "../../static/easyui/themes/"+name+"/easyui.css";
    $("#easyuiTheme").attr("href", href);
});
function addTitle(title) {
    var first=document.body.firstChild;
    var wrap=document.createElement("div");
    wrap.innerHTML= '<div  class="esaas-info-title2" style="background-color: #205081;" >\n' +
        '    <div  style="padding: 2px; " >\n' +
        '        &nbsp;&nbsp;' + title + '\n' + "    </div>\n    <a style=\"position:absolute;right: 5px;top: 0px;width:22px;height: 22px;background: url(\'../../static/easyui/themes/icons/cancel6.png\')\" class=\"easyui-menubutton\" onclick=\"closeForm()\" hr=\"#\"   ></a>\n" +
'</div>';
    var c=document.body;
    c.insertBefore(wrap, c.firstChild);
}

